package org.csu.gp_store.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("product")
public class Product {
    @TableId(value = "productID",type = IdType.ASSIGN_ID)
    private Long productID;
    @TableField("companyID")
    private Long companyID;
    @TableField("categoryID")
    private Long categoryID;
    @TableField("product_name")
    private String productName;
    private String description;
    private int status;
    @TableField(exist = false)
    List<Long> factoryList;
    @TableField(exist = false)
    private String statusDes;
}
